







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
The OrderedMultiDictionary<TKey,TValue>.View class is used to look at a subset of the keys and values
inside an ordered multi-dictionary. It is returned from the Range, RangeTo, RangeFrom, and Reversed methods.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
[SerializableAttribute] public class View : MultiDictionaryBase<TKey, TValue> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class View _ Inherits MultiDictionaryBase(Of TKey, TValue) |
Visual C++ |
---|
[SerializableAttribute] public ref class View : public MultiDictionaryBase<TKey, TValue> |
Remarks
Views are dynamic. If the underlying dictionary changes, the view changes in sync. If a change is made to the view, the underlying dictionary changes accordingly.
Typically, this class is used in conjunction with a foreach statement to enumerate the keys and values in a subset of the OrderedMultiDictionary. For example:
![]() | |
---|---|
foreach(KeyValuePair<TKey, TValue> pair in dictionary.Range(from, to)) { // process pair } |
Inheritance Hierarchy
System..::Object
Wintellect.PowerCollections..::CollectionBase<(Of <KeyValuePair<(Of <TKey, ICollection<(Of <TValue>)>>)>>)>
Wintellect.PowerCollections..::MultiDictionaryBase<(Of <TKey, TValue>)>
Wintellect.PowerCollections..::OrderedMultiDictionary<(Of <TKey, TValue>)>..::View
Wintellect.PowerCollections..::CollectionBase<(Of <KeyValuePair<(Of <TKey, ICollection<(Of <TValue>)>>)>>)>
Wintellect.PowerCollections..::MultiDictionaryBase<(Of <TKey, TValue>)>
Wintellect.PowerCollections..::OrderedMultiDictionary<(Of <TKey, TValue>)>..::View